package com.hui.platform.falseworkapi.service.business.webmagic.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 爬虫-百度新闻
 *
 * @author hui
 * @since 2020-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`tb_webmagic_baidu_news`")
public class TbWebmagicBaiduNews implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;

    /**
     * 新闻标题
     */
    @TableField("`title`")
    private String title;

    /**
     * 新闻链接
     */
    @TableField("`url`")
    private String url;

    /**
     * 目标网站
     */
    @TableField("`target_url`")
    private String targetUrl;

    /**
     * 创建时间
     */
    @TableField("`created`")
    private Date created;


    public static final String ID = "`id`";

    public static final String TITLE = "`title`";

    public static final String URL = "`url`";

    public static final String TARGET_URL = "`target_url`";

    public static final String CREATED = "`created`";

}
